package com.ruoyi.eam.controller;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.controller.BaseController;

import com.ruoyi.eam.api.domain.EamLocation;
import com.ruoyi.eam.service.IEamLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/eam")
public class EamController extends BaseController {

    @Autowired
    private IEamLocationService eamLocationService;


    @GetMapping("/{id}")
    public  R<EamLocation> getEamLocationById(@PathVariable("id") Long id){
        return R.ok(eamLocationService.getById(id));
    }
}
